package com.zhanjixun.weixin;

import java.io.File;

/**
 * 资源下载器
 *
 * @author :zhanjixun
 * @date : 2018/11/19 14:51
 */
public class Downloader {

    private Weixin weixin;

    Downloader(Weixin weixin) {
        this.weixin = weixin;
    }

    public File downloadImage(String msgId) {
        return weixin.getWxService().webWxGetMsgImg(msgId);
    }

    public File downloadAudio(String msgId) {
        return weixin.getWxService().webWxGetVoice(msgId);
    }

    public void downloadVideo() {

    }

    public void downloadFile() {

    }

}
